import request from '@/utils/request'

// 股票板块下拉列表
export function sharePlateList(data) {
    return request({
        url: '/system/stock/sharePlate',
        method: 'get',
        data: data
    })
}

// 股票列表
export function getShareCertificateList(data) {
    return request({
        url: '/system/stock/getShareCertificateList/'+data,
        method: 'get',
    })
}
//我的委托
export function goMyEntrust() {
    return request({
        url: '/system/stock/myEntrust',
        method: 'get',
    })
}
//撤销委托
export function closeEntrust(data) {
    return request({
        url: '/system/stock1/closeStock',
        method: 'post',
        data: data
    })
}


//买入委托
export function getBuy(data) {
    return request({
        url: '/system/stock/getBuy',
        method: 'post',
        data: data
    })
}
//卖出委托
export function getSell(data) {
    return request({
        url: '/system/stock/getSell',
        method: 'post',
        data: data
    })
}

//获取最新市场参考价
export function getSharePrice(data) {
    return request({
        url: '/system/stock/getSharePrice/'+data,
        method: 'get',
    })
}

//买入委托的股票下拉列表
export function buyStockName() {
    return request({
        url: '/system/stock/buyStockName',
        method: 'get',
    })
}
//最新股票价格获取
export function getPrice(data) {
    return request({
        url: '/system/stock/sharePriceList/'+data,
        method: 'get',
    })
}